import { IsString, IsNotEmpty, IsOptional, IsNumber } from 'class-validator';

export class CreateYingshishipinDto {
  @IsString()
  @IsNotEmpty({ message: '课程编号不能为空' })
  shipinbianhao: string;

  @IsString()
  @IsNotEmpty({ message: '课程名称不能为空' })
  shipinmingcheng: string;

  @IsString()
  @IsOptional()
  shipinwenjian?: string;

  @IsString()
  @IsOptional()
  fengmiantupian?: string;

  @IsNumber()
  @IsOptional()
  leibieId?: number;

  @IsString()
  @IsOptional()
  beizhu?: string;
}
